package nuist.hanniko.stu.webbackend.model.LwM2m.request;

public class BaseRequest {

    private String endpoint;
    private String kind;
    private String path;

    public BaseRequest(String endpoint, String kind, String path) {
        this.endpoint = endpoint;
        this.kind = kind;
        this.path = path;
    }

    public BaseRequest(String endpoint, String kind, String objectId, String resourceId) {
        this.endpoint = endpoint;
        this.kind = kind;
        this.path = "/" + objectId + "/0/" + resourceId;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getKind() {
        return kind;
    }

    public void setKind(String kind) {
        this.kind = kind;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
}
